<?php

use app\common\event\CustomerChanged;

$events = [
    'customer.changed' => [
        [CustomerChanged::class, 'handle']
    ],
];
foreach (glob(base_path('app/*/config/event.php')) as $file) {
    $appEvents = require $file;
    if (is_array($appEvents)) {
        $events = array_merge($events, $appEvents);
    }
}

return $events;